package cn.mapper;

import java.util.List;

import cn.pojo.User;

public interface UserMapper {
	// 根据userName查询总数
	Integer totalCount(String userName);

	// 根据用户名和页码进行模糊分页查询user对象
	List<User> getUserLike(String userName, Integer rowNum, int pagecount);

	User login(User u);

	// 批量删除
	Integer[] deleteBatch(String[] id);

	// 单个删除
	int userRemove(String id);

	// 根据id数组查user对象
	List<User> getUserByid(String[] id);

	User getUserByUserCode(String userCode);

	User getUserByUserName(String userName);

	User getUserByPhone(String phone);

	User getUsersById(String id);

	int addUser(User user);

	int updateUser(User user);

	int UpdatePassWord(String userName, String passWord, String passWord1);

	User getUserByUP(String userName, String passWord);
}
